window.onload = function () {/*鼠标悬停时*/
    var tfrow = document.getElementById('tfhover').rows.length;/*获取表格行数 */
    var tbRow = [];
    for (var i = 0; i < tfrow; i++) {
        tbRow[i] = document.getElementById('tfhover').rows[i];/*把引用了tfhover所有行数存储到数组中*/
        tbRow[i].onmouseover = function () {
            this.style.backgroundColor = 'rgb(255 218 218 / 43%)';/*移入是淡红色 */
        };
        tbRow[i].onmouseout = function () {
            this.style.backgroundColor = '#ffffff';/*移出是白色 */
        };
    }
};